import { searchSpan } from "@/api/span";
import { getFactoryNode, getNodeList } from "@/api/technology/process";

export const optionParent = {
  calcHeight: 95,
  tip: false,
  searchShow: true,
  searchMenuSpan: searchSpan(1),
  border: true,
  index: true,
  viewBtn: false,
  menuWidth: 150,
  dialogWidth: 880,
  dialogClickModal: false,
  selection: true,
  addBtn: false,
  delBtn: false,
  editBtn: false,
  // menu:false,
  column: [
    {
      label: "班组名称",
      search: true,
      prop: "team"
    },
    {
      label: "上级部门",
      prop: "department"
    },
    {
      label: "是否绑定班次",
      prop: "isBinding",
      value: "1",
      dicData: [
        {
          label: "是",
          value: "1"
        },
        {
          label: "否",
          value: "0"
        }
      ]
    }
  ]
};

export const optionChild = {
  calcHeight: 95,
  tip: false,
  searchShow: true,
  searchMenuSpan: searchSpan(1),
  tree: true,
  border: true,
  index: true,
  viewBtn: true,
  menuWidth: 220,
  dialogWidth: 880,
  dialogClickModal: false,
  menu: false,
  addBtn: false,
  column: [
    {
      label: "班次名称",
      prop: "classesName"
    },
    {
      label: "开始时间",
      prop: "startTime",
      type: "date",
      valueFormat: "HH:mm:ss"
    },
    {
      label: "结束时间",
      prop: "endTime",
      type: "date",
      valueFormat: "HH:mm:ss"
    },
    {
      label: "休息时间",
      prop: "restTime",
      type: "date",
      valueFormat: "HH:mm:ss"
    },
    {
      label: "工时",
      prop: "workTime"
    },
    // {
    //   label: "创建人",
    //   prop: "createUserstr",
    //   addDisplay: false,
    //   editDisplay: false
    // },
    {
      label: "创建时间",
      prop: "createTime",
      addDisplay: false,
      editDisplay: false
    }
    // {
    //   label: "修改人",
    //   prop: "updateUserstr",
    //   addDisplay: false,
    //   editDisplay: false
    // },
    // {
    //   label: "修改时间",
    //   prop: "updateTimestr",
    //   addDisplay: false,
    //   editDisplay: false
    // }
  ]
};
export const optionEdit = {
  calcHeight: 95,
  tip: false,
  searchShow: true,
  tree: true,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  menuWidth: 220,
  dialogWidth: 880,
  dialogClickModal: false,
  menu: false,
  addBtn: false,
  column: [
    {
      label: "班次名称",
      prop: "classesName"
    },
    {
      label: "开始时间",
      prop: "startTime"
    },
    {
      label: "结束时间",
      prop: "endTime"
    },
    {
      label: "工时",
      prop: "workTime"
    },
    {
      label: "休息时间",
      prop: "restTime"
    }
  ]
};
